package almacenes.modelo.entidad;
// Generated 16/02/2012 04:45:02 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * StockprodagrupDestino generated by hbm2java
 */
@Entity
@Table(name="STOCKPRODAGRUP_DESTINO"
    , uniqueConstraints = @UniqueConstraint(columnNames={"ID_STOCKPRODAGRUP", "ID_PTO_DESTINO"}) 
)
public class StockprodagrupDestino  implements java.io.Serializable {


     private long idStockPto;
     private Stockprodagrup stockprodagrup;
     private PuntoDestino puntoDestino;
     private Integer cantidad;
     private Byte idEstadoProdDestino;
     private Byte intento;
     private Boolean flgEntregoCopia;
     private Byte idTipoDevuelto;
     private Byte idEstadoMae;
     private String usuReg;
     private Date fecReg;
     private String usuAct;
     private Date fecAct;

    public StockprodagrupDestino() {
    }

	
    public StockprodagrupDestino(long idStockPto, Stockprodagrup stockprodagrup, PuntoDestino puntoDestino) {
        this.idStockPto = idStockPto;
        this.stockprodagrup = stockprodagrup;
        this.puntoDestino = puntoDestino;
    }
    public StockprodagrupDestino(long idStockPto, Stockprodagrup stockprodagrup, PuntoDestino puntoDestino, Integer cantidad, Byte idEstadoProdDestino, Byte intento, Boolean flgEntregoCopia, Byte idTipoDevuelto, Byte idEstadoMae, String usuReg, Date fecReg, String usuAct, Date fecAct) {
       this.idStockPto = idStockPto;
       this.stockprodagrup = stockprodagrup;
       this.puntoDestino = puntoDestino;
       this.cantidad = cantidad;
       this.idEstadoProdDestino = idEstadoProdDestino;
       this.intento = intento;
       this.flgEntregoCopia = flgEntregoCopia;
       this.idTipoDevuelto = idTipoDevuelto;
       this.idEstadoMae = idEstadoMae;
       this.usuReg = usuReg;
       this.fecReg = fecReg;
       this.usuAct = usuAct;
       this.fecAct = fecAct;
    }
   
     @Id 

    
    @Column(name="ID_STOCK_PTO", unique=true, nullable=false, precision=10, scale=0)
    public long getIdStockPto() {
        return this.idStockPto;
    }
    
    public void setIdStockPto(long idStockPto) {
        this.idStockPto = idStockPto;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_STOCKPRODAGRUP", nullable=false)
    public Stockprodagrup getStockprodagrup() {
        return this.stockprodagrup;
    }
    
    public void setStockprodagrup(Stockprodagrup stockprodagrup) {
        this.stockprodagrup = stockprodagrup;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_PTO_DESTINO", nullable=false)
    public PuntoDestino getPuntoDestino() {
        return this.puntoDestino;
    }
    
    public void setPuntoDestino(PuntoDestino puntoDestino) {
        this.puntoDestino = puntoDestino;
    }

    
    @Column(name="CANTIDAD", precision=7, scale=0)
    public Integer getCantidad() {
        return this.cantidad;
    }
    
    public void setCantidad(Integer cantidad) {
        this.cantidad = cantidad;
    }

    
    @Column(name="ID_ESTADO_PROD_DESTINO", precision=2, scale=0)
    public Byte getIdEstadoProdDestino() {
        return this.idEstadoProdDestino;
    }
    
    public void setIdEstadoProdDestino(Byte idEstadoProdDestino) {
        this.idEstadoProdDestino = idEstadoProdDestino;
    }

    
    @Column(name="INTENTO", precision=2, scale=0)
    public Byte getIntento() {
        return this.intento;
    }
    
    public void setIntento(Byte intento) {
        this.intento = intento;
    }

    
    @Column(name="FLG_ENTREGO_COPIA", precision=1, scale=0)
    public Boolean getFlgEntregoCopia() {
        return this.flgEntregoCopia;
    }
    
    public void setFlgEntregoCopia(Boolean flgEntregoCopia) {
        this.flgEntregoCopia = flgEntregoCopia;
    }

    
    @Column(name="ID_TIPO_DEVUELTO", precision=2, scale=0)
    public Byte getIdTipoDevuelto() {
        return this.idTipoDevuelto;
    }
    
    public void setIdTipoDevuelto(Byte idTipoDevuelto) {
        this.idTipoDevuelto = idTipoDevuelto;
    }

    
    @Column(name="ID_ESTADO_MAE", precision=2, scale=0)
    public Byte getIdEstadoMae() {
        return this.idEstadoMae;
    }
    
    public void setIdEstadoMae(Byte idEstadoMae) {
        this.idEstadoMae = idEstadoMae;
    }

    
    @Column(name="USU_REG", length=10)
    public String getUsuReg() {
        return this.usuReg;
    }
    
    public void setUsuReg(String usuReg) {
        this.usuReg = usuReg;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_REG", length=7)
    public Date getFecReg() {
        return this.fecReg;
    }
    
    public void setFecReg(Date fecReg) {
        this.fecReg = fecReg;
    }

    
    @Column(name="USU_ACT", length=10)
    public String getUsuAct() {
        return this.usuAct;
    }
    
    public void setUsuAct(String usuAct) {
        this.usuAct = usuAct;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_ACT", length=7)
    public Date getFecAct() {
        return this.fecAct;
    }
    
    public void setFecAct(Date fecAct) {
        this.fecAct = fecAct;
    }




}


